package com.example.imtoken.modules.user.create.backups.mnemonic.confirmation

import androidx.recyclerview.widget.DiffUtil
import com.example.imtoken.entitys.app.ItemWordsEntity

class ConfirmationMnemonicsDiffCallback : DiffUtil.ItemCallback<ItemWordsEntity>() {
    override fun areItemsTheSame(oldItem: ItemWordsEntity, newItem: ItemWordsEntity): Boolean {
        return oldItem.word == newItem.word
    }

    override fun areContentsTheSame(oldItem: ItemWordsEntity, newItem: ItemWordsEntity): Boolean {
        return oldItem == newItem
    }
}